package com.wy.panda.controller;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wy.panda.common.model.R;
import com.wy.panda.controller.po.FormAndParameterSignTestPO;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;

/**
 * 签名测试
 *
 * @author WangYuan
 * @since 2020年12月29日 下午1:22:31
 */
@Api(value = "签名测试", tags = "签名测试")
@Validated
@AllArgsConstructor
@RestController
@RequestMapping("/signTest")
public class SignTestController extends BaseController {

	@GetMapping(value = "/getByFormAndParameter")
	public R<FormAndParameterSignTestPO> getByFormAndParameter(FormAndParameterSignTestPO po){
		return R.ok(po);
	}
	
	@PostMapping(value = "/postByFormAndParameter")
	public R<FormAndParameterSignTestPO> postByFormAndParameter(FormAndParameterSignTestPO po){
		return R.ok(po);
	}
	
	@PostMapping(value = "/postByJsonAndHeader")
	public R<FormAndParameterSignTestPO> postByJsonAndHeader(@RequestBody FormAndParameterSignTestPO po){
		return R.ok(po);
	}
}
